﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace CondominioG1.Dominio
{
    public class Usuario
    {

        [Required(ErrorMessage = "El Codigo es obligatorio")]
        [StringLength(10, ErrorMessage = "Máximo 10 caracteres")]
        public String Codigo { get; set; }

         [Required(ErrorMessage = "Debe ingresar Nombres")] 
        public String Nombres { get; set; }

         [Required(ErrorMessage = "Debe ingresar Apellidos")] 
        public String Apellidos { get; set; }

         [Required(ErrorMessage = "Debe ingresar Clave")] 
        public String Clave { get; set; }

        public String Tipo { get; set; }
     }
}